package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;


/**
 * <p>
 *
 * </p>
 *
 * @author shy
 * @since 2022-10-31
 */
@Document(indexName = "business_outlets")

public class BusinessOutletsES  {



     @Id
    private Integer outletsId;

    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer = "ik_max_word")//设置为text  可以分词
    private String outletsName;

    @Field(type = FieldType.Auto)
    private Long outletsTel;

    @Field(type = FieldType.Auto)
    private String outlesLocal;

    @Field(type = FieldType.Auto)
    private Integer outletsStatus;

    @Field(type = FieldType.Auto)
    private String other1;

    @Field(type = FieldType.Auto)
    private String other2;

    public Integer getOutletsId() {
        return outletsId;
    }

    public void setOutletsId(Integer outletsId) {
        this.outletsId = outletsId;
    }
    public String getOutletsName() {
        return outletsName;
    }

    public void setOutletsName(String outletsName) {
        this.outletsName = outletsName;
    }
    public Long getOutletsTel() {
        return outletsTel;
    }

    public void setOutletsTel(Long outletsTel) {
        this.outletsTel = outletsTel;
    }
    public String getOutlesLocal() {
        return outlesLocal;
    }

    public void setOutlesLocal(String outlesLocal) {
        this.outlesLocal = outlesLocal;
    }
    public Integer getOutletsStatus() {
        return outletsStatus;
    }

    public void setOutletsStatus(Integer outletsStatus) {
        this.outletsStatus = outletsStatus;
    }
    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }
    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    @Override
    public String toString() {
        return "BusinessOutlets{" +
                "outletsId=" + outletsId +
                ", outletsName=" + outletsName +
                ", outletsTel=" + outletsTel +
                ", outlesLocal=" + outlesLocal +
                ", outletsStatus=" + outletsStatus +
                ", other1=" + other1 +
                ", other2=" + other2 +
                "}";
    }
}
